import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-04
 * Time: 21:45
 */
public class Demo3 {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("d:/test1.txt",true)) {
            writer.write("要想成为Java高级工程师，就需要不断地敲代码");
        } catch (IOException e) {
            throw new RuntimeException(e);
        } ;
    }
}
